import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *


class MyWindow(QWidget):
    def __init__(self):
        super(MyWindow, self).__init__()
        self.setWindowTitle('vroSelect')

        select_yukari = QRadioButton('yuakri')
        select_zunko = QRadioButton('zunko')
        select_seika = QRadioButton('seika')
        select_kiritan = QRadioButton('kiritan')
        select_maki = QRadioButton('maki')
        select_akari = QRadioButton('akari')
        # add radios

        vro1radios = QHBoxLayout()
        # radios layout

        vro1radios.addWidget(select_yukari)
        vro1radios.addWidget(select_zunko)
        vro1radios.addWidget(select_seika)
        vro1radios.addWidget(select_kiritan)
        vro1radios.addWidget(select_maki)
        vro1radios.addWidget(select_akari)

        select_yukari.toggled.connect(lambda: self.select_vro1(select_yukari))
        select_zunko.toggled.connect(lambda: self.select_vro1(select_zunko))
        select_seika.toggled.connect(lambda: self.select_vro1(select_seika))
        select_kiritan.toggled.connect(lambda: self.select_vro1(select_kiritan))
        select_maki.toggled.connect(lambda: self.select_vro1(select_maki))
        select_akari.toggled.connect(lambda: self.select_vro1(select_akari))
        # add function

        vro1radiosWidgt = QWidget()
        vro1radiosWidgt.setLayout(vro1radios)

        select_akane = QRadioButton('akane')
        select_aoi = QRadioButton('aoi')

        vro2radios = QHBoxLayout()

        select_akane.toggled.connect(lambda: self.select_vro2(select_akane))
        select_aoi.toggled.connect(lambda: self.select_vro2(select_aoi))

        vro2radios.addWidget(select_akane)
        vro2radios.addWidget(select_aoi)

        vro2radiosWidgt = QWidget()
        vro2radiosWidgt.setLayout(vro2radios)

        mainlayout = QVBoxLayout()
        mainlayout.addWidget(vro1radiosWidgt)
        mainlayout.addWidget(vro2radiosWidgt)

        self.setLayout(mainlayout)

    def select_vro1(self, vro1_radio_btn):
        print(vro1_radio_btn.text())

    def select_vro2(self, vro2_radio_btn):
        print(vro2_radio_btn.text())


if __name__ == '__main__':
    app = QApplication(sys.argv)
    myshow = MyWindow()
    myshow.show()
    sys.exit(app.exec_())
